Auto merge of #1632 - hansjorg:master, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 19 May 2015 00:50:07 +0000 (00:50 +0000)
committerbors <bors@rust-lang.org>
Tue, 19 May 2015 00:50:07 +0000 (00:50 +0000)
Check for existence of file in dl_path before fetching with curl.
If file exists, compare hash with expected.

Also wrap tarfile.open() in contextlib.closing() to support older
python versions (<= 2.6).

This fixes part of #1525.


Trivial merge